
public class Display {
	private int value = 0;
	private int limit = 0;
	
	public Display(int limit) {

		this.limit = limit;
	}
	void increase() {
		value++;
		if (value >= limit) {
			value = 0;
		}
	}
	void setValue(int value) {
		this.value = value;
	}
	int getValue() {
		return value;
	}

}
